package entity.innerClass.lianxi.demo;
/*
* 这里用Lambda表达式来实现
* */
public class MainTest02 {
    public static void main(String[] args) {
        Runnable task = ()->{
            for (int i = 0; i < 10; i++) {
                System.out.println("好好学习");
            }
        };

        Thread thread1 = new Thread(task);
        thread1.start();
    }
}
